-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cosmetic): cannot find m-r-10 class in superset.less #20276
fix(cosmetic): cannot find m-r-10 class in superset.less #20276
Conversation
Codecov Report
@@ Coverage Diff @@
## master #20276 +/- ##
==========================================
+ Coverage 66.69% 66.70% +0.01%
==========================================
Files 1739 1739
Lines 65153 65139 -14
Branches 6903 6897 -6
==========================================
+ Hits 43453 43454 +1
+ Misses 19947 19932 -15
Partials 1753 1753
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
While this fixes the missing class, and I appreciate the contribution to resolve that, there are a couple things that are holding me up from approving/merging.
|
I found this problem when I was trying to add another Button on the right side after the one showing in the picture, and there was no margin between these two Button which should be there because both Button had '.m-r-10' class. So I raised up this issue. But just as you mentioned, it looks nicely right aligned so maybe all those buttons should be removed from '.m-r-10' class? or use '.m-l-10' instead. And maybe it is another good way to globalize SQL Labs' less file. |
I think this is the best solution.
That's a valid use case. We just need to fix it using Emotion instead of LESS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can adjust the margins to our theme multiples (12px) 😉
superset-frontend/src/components/Datasource/CollectionTable.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/components/Datasource/DatasourceEditor.jsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
/testenv up |
@michael-s-molina Ephemeral environment spinning up at http://52.13.42.77:8080. Credentials are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the contribution!
Ephemeral environment shutdown and build artifacts deleted. |
* fix(cosmetic): cannot find m-r-10 class in superset.less * fix: remove .m-r-10 class and use emotion instead * Update superset-frontend/src/components/Datasource/CollectionTable.tsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> * Update superset-frontend/src/components/Datasource/DatasourceEditor.jsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> (cherry picked from commit f6f93aa)
SUMMARY
Cannot find '.m-r-10' css class in CollectionTable component, seems missing in src/assets/stylesheets/superset.less
BTW, maybe we should check any other missing css class.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION